﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using UI_Editor.DckForm;
using WeifenLuo.WinFormsUI.Docking;

namespace UI_Editor
{
    public partial class MainForm : Form
    {
        public static DockContent outlineForm, preViewForm, propForm, renderForm, resForm, toolsForm;
        public static toolFunctions T = new toolFunctions();
        public static ListView listView;

        public static Image Img;        //选中控件的图像
        public static Cursor cursor;    //鼠标光标

        public MainForm()
        {
            InitializeComponent();
        }

        private void mainForm_Load(object sender, EventArgs e)
        {
            //
            //创建子窗体
            //
            outlineForm = new OutlineForm();
            preViewForm = new PreViewForm(); 
            propForm = new PropForm();
            resForm = new ResForm();
            toolsForm = new ToolsForm();
            renderForm = new RenderForm();
            //
            //子窗体布局
            //
            renderForm.Show(dockPanel, DockState.Document);
            toolsForm.Show(dockPanel, DockState.DockLeft);
            preViewForm.Show(toolsForm.Pane, DockAlignment.Bottom, 0.6f);
            resForm.Show(preViewForm.Pane, DockAlignment.Bottom, 0.6f);
            outlineForm.Show(dockPanel, DockState.DockRight);
            propForm.Show(outlineForm.Pane, DockAlignment.Bottom, 0.7f);
        }
    }
}
